<script>
  var p="{$p}";//定义页码
  var name="{$name}";
  var year="{$year}";
  var test_number="{$test_number}";
  var Class="{$Class}";
</script>
<php>if($listData){</php>
<table class="table table_list t7_2">
<foreach name="listData" item="data">
  <tr>
    <td>{$data.stu.stu_name}</td>
    <td>{$data.class_type}</td>
    <td>{$data.class_name}</td>
    <td><if condition="$data['test_number'] eq 1">春季<else/>秋季</if></td>
    <td>{$data['year']}</td>
    <td>{$data.result}</td>
    <td>
      <if condition="$data['is_update'] eq 0">
        <a href="{:U('public/TestData/UpdatePeportTest',array('id'=>$data['test_id']))}">修改</a>
      <else/>
        <a href="javascript:;">修改（1次）</a>
      </if>
      <a href="{:U('public/TestData/TestDataview',array('id'=>$data['test_id'],'type'=>1))}">查看</a>
      <a href="{:U('public/TestData/doexport',array('id'=>$data['test_id'],'type'=>1))}">导出</a>
    </td>
  </tr>
</foreach>
</table>
<php>}else{</php>
<span>暂无测试数据</span>
<php>}</php>